
import 'package:baselib/utils/log_util.dart';

/**
 * api配置
 */


class ApiConfig{

  static final String SUCCESS_CODE='0000';
  static final int FAIL_CODE=201;
  // static final String BASE_URL = "http://172.16.0.113:8080/";
  // static final String BASE_URL = "http://172.16.0.32:8080/";
  // static final String BASE_URL = "http://172.16.0.239:8080/";
  static final String BASE_URL = "http://8.134.216.253:8000";

  static final String oss_end_point = "oss-accelerate.aliyuncs.com";
  static final String oss_bucket_name = "app-bucket-test";
  static final String base_img_oss_url = "https://$oss_bucket_name.$oss_end_point/";


  static String package_name = 'com.xt.tianshun';
  //蒲公英配置
  static String pgy_app_Key = "491ffb3c2ce7eeb8f21de18b5051f19a";
  static String pgy_api_key = "d00bebd2f553620f4fe63c61b9f4f077";
  static String pgy_check_url = 'https://www.pgyer.com/apiv2/app/check';

  static const String wyyx_app_id = '77985415';
  static const String wyyx_app_key = '124f689baed25c488e1330bc42e528af';

  static const String agora_app_id = '4777545f472c42a5900e06a7ac98ab34';
  static const String agora_app_key = 'e20e691e5bca4599a840c3e3f3828afa';


  static String getOssImgUrl(String imgPath){
    if(!(imgPath??'').startsWith('http')){
      imgPath = '${base_img_oss_url}${imgPath}';
    }
    LogUtil.d('getOssImgUrl-->imgPath=$imgPath');
    return imgPath;
  }

}
